package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 何华树
 * Date: 2024-09-04
 * Time: 13:07
 */
public class Bird extends Animal implements Ifly{

    public Bird(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(this.name+" 正在吃虫子...");
    }

    @Override
    public void fly() {
        System.out.println(this.name+" 张开翅膀在飞.");
    }
}
